package cn.iune.erp.accounting;

import java.util.List;
import com.alibaba.fastjson.JSONObject;

public interface IAccountVoucherDetailService {

	int save(JSONObject object) throws Throwable;

	int confirm(String fID);

	int active(String fID);

	int confirm(AccountVoucherDetail a);

	int active(AccountVoucherDetail a);

	int confirmByMasterID(String fMasterID);

	int activeByMasterID(String fMasterID);

	int open(String fID);

	int close(String fID);

	int open(AccountVoucherDetail a);

	int close(AccountVoucherDetail a);

	int openByMasterID(String fMasterID);

	int closeByMasterID(String fMasterID);

	//审核通过，改变审核状态为confirm
	int agreeIt(String fID);

	//审核拒绝，改变审核状态为active
	int unAgree(String fID);

	//审核通过，改变审核状态为confirm
	int agreeIt(AccountVoucherDetail a);

	//审核拒绝，改变审核状态为active
	int unAgree(AccountVoucherDetail a);

	int agreeItByMasterID(String fMasterID);

	int unAgreeByMasterID(String fMasterID);

	int deleteByMasterID(String fMasterID);

	void insert(AccountVoucherDetail obj);

	void delete(String fID);

	void update(AccountVoucherDetail obj);

	List<AccountVoucherDetail> getByMasterID(String fMasterID);

	AccountVoucherDetail packing(AccountVoucher accountVoucher);

}